package com.project.mapper;

import com.project.bean.RepliesBean;
import org.apache.ibatis.annotations.Insert;

/**
 * 回帖表业务成持久接口
 */
public interface IRepliesMapper {
    /**
     * 添加回帖
     * @param reply 回帖对象
     */
    @Insert("INSERT INTO t_replies(r_repliesName,r_repliesInfo,r_time,fk_userId,fk_topicId)VALUES(#{name},#{info},#{time},#{user.id},#{topic.id})")
    public void add(RepliesBean reply);
}
